﻿@using VirtualPress.Infrastructure.Entities.Entity;
@using VirtualPress.Tool.Framework;
@{
    ViewBag.Title = "行业杂志";
    Layout = "/Views/Shared/_Main.cshtml";
}
@section head{
    <script src="/scripts/bootstrap-popover.js" type="text/javascript"></script>
}
<div class="container">
    <div class="row">
        <div class="span9">
            <ul class="breadcrumb">
                <li><a href="/Home">首页</a> <span class="divider">/</span></li>
                <li><a>期刊</a> <span class="divider">/</span></li>
                <li class="active">行业杂志</li>
            </ul>
            <ul class="thumbnails">
                @{
                    ItemListBox<Periodical> data = ViewBag.Magazine;
                    if (data != null)
                    {
                        List<Periodical> journals = data.Data;
                        if (journals != null && journals.Any())
                        {

                            foreach (var item in journals)
                            {
                    <li class="span3"><a target="_blank" class="thumbnail" href="/Magazine/home/Magazine/@item.Id" style="padding-top:10px; text-align:center" data-trigger="hover" data-original-title="@item.Name"
                                data-html="true" data-content="@item.Introduction.PieceOfString(0,100,"......")<hr/>ISSN:@item.ISSN_Print<br/>eISSN:@item.ISSN_Online">
                        <img style="width:150px; height:205px;" src="@item.CoverImg" alt="@item.Name" />
                        <h4>
                            @item.Name</h4>
                    </a></li>
                            }

                        }
                    }
                }
            </ul>
            @Html.Raw(data.PageItemSegment)
        </div>
        <div class="span3">
            <div class="mini-layout">
                @RenderPage("~/Views/Shared/Partial/_Quiklinks.cshtml")
                <div class="hspace10">
                </div>
                <div class="hspace15">
                </div>
                @RenderPage("~/Views/Shared/Partial/_Newbooks.cshtml")
                <div class="hspace15">
                </div>
                <div class="hspace15">
                </div>
                @RenderPage("~/Views/Shared/Partial/_Consult.cshtml")
            </div>
        </div>
    </div>
</div>
@section tail{
    <script type="text/javascript">
        $(function () {
            $('#lijournal').addClass('active');
            $('a.thumbnail').popover();
        }); </script>
}
